import config from "@/config"
import http from "@/utils/request"

export default {
	//项目管理
	projeck:{
		list: {
			url: `${config.API_URL}/adminapi/shop.project/lists`,
			name: "列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		all: {
			url: `${config.API_URL}/adminapi/shop.project/all`,
			name: "全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/shop.project/detail`,
			name: "详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/shop.project/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.project/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.project/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},

	},
}
